package com.daxia.bumall.common;

public enum DecorateRequirementStatus {
	Init(0, "初始订单"), 
	Done(1, "已抢单"),
	Expired(2, "已过期");

	private int value;
	private String remark;

	private DecorateRequirementStatus(int value, String remark) {
		this.value = value;
		this.remark = remark;
	}

	public int getValue() {
		return value;
	}

	public String getRemark() {
		return remark;
	}

	public static DecorateRequirementStatus getByValue(int value) {
		for (DecorateRequirementStatus o : DecorateRequirementStatus.values()) {
			if (o.getValue() == value) {
				return o;
			}
		}
		return null;
	}
}
